<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>View Document</title>
</head>

<body>
<div class="grid_12">
    ${sidebar_left()}
    <div class="grid_9 omega">
        <div class="grid_9">
            <div class="grid_3 alpha">
                <a href="${tg.url('/document/delete/')}${doc.doc_id}">Delete</a>
            </div>
            <div class="grid_3">
                <a href="${tg.url('/record/view/')}${doc.record_id}#documents">Back to Record</a>
            </div>
            <div class="grid_3 omega">
            </div>
        </div>
        <div class="grid_9"><a href="/document/serve/${doc.doc_id}">${doc.orig_name}</a></div>
        <div class="grid_9">${tmpl_context.doc_form()}</div>
    </div>  
</div>
</body>
</html>
